import torch

modelpath = '/mnt/disk2/captcha/captcha-ocr1/train/pytorch-crnn.pth'

net = torch.load(modelpath, map_location=torch.device('cpu'))

print(type(net))
print(len(net))

# for k in net.keys():
#     print(k)
torch.set_printoptions(threshold=float('inf'))
for key, value in net.items():
    if key == 'cnn.conv3.weight':
        print(value)
    else:
        print(key, value.size(), sep="   ")